package cn.cvs.service;

import cn.cvs.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserService {
    boolean add(SysUser var1) throws Exception;

    SysUser login(String var1, String var2) throws Exception;

    List<SysUser> getUserList(String var1, Integer var2, Integer var3, Integer var4) throws Exception;

    int getUserCount(String var1, Integer var2) throws Exception;

    SysUser getUserById(Integer var1) throws Exception;

    boolean update(SysUser var1) throws Exception;

    boolean updatePwd(Integer var1, String var2) throws Exception;

    SysUser getByAccount(String var1) throws Exception;

    boolean deleteById(Integer var1) throws Exception;

    SysUser getIsPwd(@Param("id") Integer id,
                     @Param("password") String password);
}
